package com.zxq.uart.frame;

import com.zxq.factory.annotate.DecoderField;
import com.zxq.factory.annotate.EncoderField;
import com.zxq.factory.annotate.Frame;
import com.zxq.factory.annotate.BigLittleEndianMark;
import com.zxq.factory.enums.EField;
import lombok.Data;

@Frame
@Data
public class TestFrame {

    @EncoderField(field = EField.Float,len = 4)
    @DecoderField(field = EField.Float,param = 4)
    @BigLittleEndianMark(serial = "1234")
    Float value;

    @EncoderField(field = EField.Int,sequence = 1)
    @DecoderField(field = EField.Int,sequence = 1)
    @BigLittleEndianMark(serial = "21")
    Integer number;


    @EncoderField(field = EField.Int,sequence = 2,len = 4)
    @DecoderField(field = EField.Int,sequence = 2,param = 4)
    @BigLittleEndianMark(serial = "4321")
    Integer number2;


}
